const mysql = require('mysql2/promise');
const { frontendUrl, mysqlOpts } = require('./config.js');

// 创建连接池，设置连接池的参数
const pool = mysql.createPool(mysqlOpts);

module.exports = {
  pool,
  data_url: frontendUrl
};